MongoDBRef
PHP Manual

MongoDBRef::create

(PECL mongo >= 0.9.0)

MongoDBRef::createCreates a new database reference

Descripción

public static array MongoDBRef::create ( string $ns , mixed $id )

Lista de parámetros

ns

Database and collection name.

id

The id of the object to link.

Valores retornados

Returns the reference.


MongoDBRef
PHP Manual